var version = localStorage.getItem("version")
if(!version || version==null || version=="undefined"){
    var nowdate = new Date();
    version = nowdate.getFullYear().toString()+"."+(nowdate.getMonth()+1)+"."+nowdate.getDate();
}


function loadcss(url, isappendversion) {
    if (isappendversion) {
        url += "?version=" + version;
    }
    document.write('<link rel="stylesheet" href= '+url+'></link>');
}

function loadjs(url, isappendversion) {
    if (isappendversion) {
        url += "?version=" + version;
    }
    document.write('<script src= ' + url + '></script>');
}

loadcss(GetRootPath()+'plugin/elementui/index.css',true)
loadcss(GetRootPath()+'plugin/fastdialog/fastdialog.css',true)
loadcss(GetRootPath()+'css/hpDefault.css',true)

loadjs(GetRootPath() + 'plugin/vue.js', true);
loadjs(GetRootPath() + 'plugin/md5.js', true);
loadjs(GetRootPath() + 'plugin/elementui/index.js', true);
loadjs(GetRootPath() + 'plugin/fastdialog/fastdialog.js', true);
loadjs(GetRootPath() + 'plugin/jquery-1.10.2.min.js', true);
loadjs( GetRootPath() + 'js/hpBase.js', true);
loadjs( GetRootPath() + 'js/hpBaseVue.js', true);
loadjs( GetRootPath() + 'js/hpExtend.js', true);